package com.byyy.ccts.modules.task.task;


import com.byyy.ccts.core.utils.SpringContextHolder;
import com.byyy.ccts.extend.zx.service.IRecordService;
import com.byyy.ccts.modules.cc.service.ITempUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class SyncTempTask {

    @Autowired
    private IRecordService recordService;

    @Autowired
    private ITempUploadService tempUploadService;

    public void syncCarTemp(String param) {
        recordService = (IRecordService) SpringContextHolder.getApplicationContext().getBean("recordService");
        this.recordService.syncCarTempTask();
    }

    public void syncTemp(String param) {
        this.tempUploadService = SpringContextHolder.getBean("tempUploadService");
        this.tempUploadService.tempUpload();
    }

}
